package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.cet.demos.domain.po.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

@Mapper
public interface UserLoginMapper extends BaseMapper<User> {
//    @Select("select * from cet.user where username = #{username} and password = #{password}")
    User getByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
//    @Select("select count(*) from cet.user")
//    public Long count();
//    @Select("select * from cet.user where username=#{username}  limit #{start},#{pageSize}")
//    public List<User> findMyInf(Integer start, Integer pageSize, String username);

}
